<?xml version="1.0" encoding="utf-8"?>

<div xmlns="http://www.w3.org/1999/xhtml" xid="window" class="window" component="$UI/system/components/justep/window/window"
  design="device:m;">  
  <div component="$UI/system/components/justep/model/model" xid="model" style="width:175px;top:212px;left:17px;height:auto;"
    onParamsReceive="modelParamsReceive" onLoad="modelLoad"> 
    <div component="$UI/system/components/justep/data/data" autoLoad="false"
      xid="FaHuoLieBiaoData" idColumn="fID" autoNew="false"> 
      <column label="主键" name="fID" type="String" xid="xid5"/>  
      <column label="子订单编号" name="SInfoID" type="String" xid="xid6"/>  
      <column label="产品编号" name="PrdNo" type="String" xid="xid19"/>  
      <column label="产品数量" name="PrdCount" type="Integer" xid="xid20"/>  
      <column label="已扫数量" name="ScanCount" type="Integer" xid="xid21"/>  
      <rule xid="rule1"> 
        <col name="PrdCount" xid="ruleCol1"> 
          <readonly xid="readonly1"> 
            <expr xid="default1"><![CDATA[val("SInfoID")!=""]]></expr> 
          </readonly> 
        </col>  
        <col name="PrdNo" xid="ruleCol2"> 
          <readonly xid="readonly2"> 
            <expr xid="default2"><![CDATA[val("SInfoID")!=""]]></expr> 
          </readonly> 
        </col>  
        <col name="ScanCount" xid="ruleCol4"> 
          <defaultValue xid="default5"> 
            <expr xid="default6">0</expr> 
          </defaultValue> 
        </col> 
      </rule> 
    </div>  
    <div component="$UI/system/components/justep/data/data" autoLoad="true"
      xid="ProductData" idColumn="fID"> 
      <column name="fID" type="String" xid="xid22"/>  
      <column name="IsState" type="String" xid="xid23"/>  
      <column name="PackingRatio" type="String" xid="xid24"/>  
      <column name="PrdID" type="String" xid="xid25"/>  
      <column name="PrdName" type="String" xid="xid26"/>  
      <column name="PrdNo" type="String" xid="xid27"/>  
      <column name="PrdSpf" type="String" xid="xid28"/>  
      <column name="isSelected" type="Boolean" xid="xid29"/>  
      <rule xid="rule2"> 
        <col name="isSelected" xid="ruleCol3"> 
          <defaultValue xid="default3"> 
            <expr xid="default4">false</expr> 
          </defaultValue> 
        </col> 
      </rule> 
    </div> 
  </div>  
  <div component="$UI/system/components/justep/panel/panel" class="x-panel x-full"
    xid="panel1"> 
    <div class="x-panel-top" xid="top1"> 
      <div component="$UI/system/components/justep/titleBar/titleBar" class="x-titlebar"
        xid="titleBar1"> 
        <div class="x-titlebar-left" xid="left1"> 
          <a component="$UI/system/components/justep/button/button" class="btn btn-warning"
            label="暂存" xid="TitleBarSave" onClick="TitleBarSave_ButtonClick" bind-visible="false"> 
            <i xid="i10"/>  
            <span xid="span9">暂存</span> 
          </a> 
        </div>  
        <div class="x-titlebar-title" xid="title1"><![CDATA[直销发货]]></div>  
        <div class="x-titlebar-right reverse" xid="right1" style="width:200px;"> 
          <a component="$UI/system/components/justep/button/button" class="btn btn-success"
            label="发货" xid="SendButton" onClick="SendButtonClick"> 
            <i xid="i1"/>  
            <span xid="span1">发货</span> 
          </a> 
        </div> 
      </div> 
    </div>  
    <div class="x-panel-content" xid="content1"> 
      <div component="$UI/system/components/justep/list/list" class="x-list"
        xid="list1" data="FaHuoLieBiaoData"> 
        <ul class="x-list-template" xid="listTemplateUl1"> 
          <li xid="li1"> 
            <div component="$UI/system/components/justep/row/row" class="x-row"
              xid="row2"> 
              <div class="x-col x-col-25" xid="col4"> 
                <label xid="label4">产品名称</label> 
              </div>  
              <div class="x-col" xid="col5"> 
                <select component="$UI/system/components/justep/select/select"
                  bind-optionsCaption="请选择..." class="form-control" xid="select1"
                  bind-options="$model.ProductData" bind-optionsValue="PrdNo" bind-optionsLabel="PrdName"
                  bind-ref="ref(&quot;PrdNo&quot;) "/> 
              </div> 
            </div>  
            <div component="$UI/system/components/justep/row/row" class="x-row"
              xid="row3"> 
              <div class="x-col x-col-25" xid="col7"> 
                <label xid="label5">产品数量</label> 
              </div>  
              <div class="x-col" xid="col8"> 
                <input component="$UI/system/components/justep/input/input" class="form-control"
                  xid="input1" bind-ref="ref(&quot;PrdCount&quot;)" maxLength="4" min="0" onFocus="input1Focus"/> 
              </div>  
              <div class="x-col x-col-fixed" xid="col2" style="width:auto;"> 
                <div component="$UI/system/components/justep/labelEdit/labelEdit"
                  class="x-label-edit x-label30" xid="labelEdit1"> 
                  <label class="x-label" xid="label1" style="width:44px;"><![CDATA[已扫:]]></label>  
                  <div component="$UI/system/components/justep/output/output"
                    class="x-output x-edit" xid="output2" bind-ref="ref(&quot;ScanCount&quot;)"
                    style="width:10px;"/> 
                </div> 
              </div>  
              <div class="x-col x-col-fixed x-col-center" xid="col1" style="text-align:right;width:auto;"> 
                <a component="$UI/system/components/justep/button/button"
                  class="btn x-green btn-sm btn-icon-left " xid="QRScan1" icon="e-commerce e-commerce-saomiao"
                  label="扫码" onClick="QRScan_ButtonClick"> 
                  <i xid="i6" class="e-commerce e-commerce-saomiao"/>  
                  <span xid="span6">扫码</span> 
                </a> 
              </div> 
            </div> 
          </li> 
        </ul> 
      </div>  
      <div component="$UI/system/components/justep/row/row" class="x-row" xid="row4"> 
        <div class="x-col" xid="col15"/>  
        <div class="x-col" xid="col16" style="text-align:center;"> 
          <a component="$UI/system/components/justep/button/button" class="btn btn-link"
            label="继续添加产品" xid="AddCreateFranchiserInfo1" onClick="AddCreateFranchiserInfo_ButtonClick"> 
            <i xid="i3"/>  
            <span xid="span3">继续添加产品</span> 
          </a> 
        </div>  
        <div class="x-col" xid="col18"/> 
      </div> 
    </div>  
    <div class="x-panel-bottom" xid="bottom1"/> 
  </div> 
</div>
